package Work;

import java.io.Serializable;

import moodish.comm.ServerSideMessage;

/**
 * 
 * @author tiago_000
 *		This Class is an implementation of ServerSideMessage
 */
public class ServerMessage implements ServerSideMessage, Serializable{
	Type type;
	String nickName, Payload;
	
	public ServerMessage(Type type, String nickName, String payLoad){
		this.type=type;
		this.nickName=nickName;
		this.Payload=payLoad;

	}
	
	
	@Override
	public Type getType() {
		return type;
	}

	@Override
	public String getPayload() {
		return Payload;
	}

	@Override
	public String getClientNickname() {
		return nickName;
	}
	
}
